<?php
	if(isset($_POST['edit_pwd']))
	{
	?>
		
		<form action="" method="post">
		<table>
			<tr>
				<td>Ancien mot de passe:</td>
				<td><input type="text" name="old_pwd" ></td>
			</tr>	
				<tr>
				<td>Nouveau mot de passe:</td>
				<td><input type="text" name="new_pwd1" ></td>
			</tr>	
				<tr>
				<td>Confirmez mot de passe:</td>
				<td><input type="text" name="new_pwd2"></td>
			</tr>
			<tr>
				<td><input type="submit" name="edit_pwd" value="Changer"/></td>
			</tr>
		</table>
		</form>
		
<?php
	}
	else
	{
?>
	
		<form action="" method="post">
		<table>	
			<tr>
				<td><input type="submit" name="edit_pwd" value="Changer de mot de passe"></td>
			</tr>
			<tr>
				<td>Nom:</td>
				<td><input type="text" name="name" value=<?php echo $name; ?>></td>
			</tr>	
			<tr>
				<td>Pr&eacute;nom:</td>
				<td><input type="text" name="firstname" value=<?php echo $firstname; ?>></td>
			</tr>	
			<tr>
				<td>Mail:</td>
				<td><input type="text" name="mail" value=<?php echo $mail; ?>></td>
			</tr>
			<tr>
				<td><input type="submit" name="edit_profil" value="Editer profil"/></td>
			</tr>
		</table>
		</form>

<?php
	}
?>
